/*
	Copyright (c) 2010 Canadensys
*/

package net.canadensys.dataportal.vascan.predicates;

import net.canadensys.dataportal.vascan.Taxon;
import net.canadensys.dataportal.vascan.config.ApplicationConfig;

import org.apache.commons.collections.Predicate;

public class IsSynonymPredicate implements Predicate{
    public boolean evaluate(Object o) {
        boolean is = false;
        Taxon taxon = (Taxon) o;
        if(taxon.getStatus().getId() == ApplicationConfig.STATUS_SYNONYM)
            is = true;    
        return is;
    }
} 